<!doctype html>
<html lang="en">
<head>
    <script language="javascript">
 
        function printFunction() {
            var sr = location.search.split('&');

            var path = sr[0].split('=')[1];
            var page = sr[1].split('=')[1];
            var total = sr[2].split('=')[1];
            if (parseInt(page) == 1 || parseInt(page) == total) {
                document.getElementById('page2').style.display = "none";
            }
            else
            {
                document.getElementById('page2').style.display = "";
                document.getElementById('page2').src = path.replace("{0}", parseInt(page) + 1);
            }
            document.getElementById('page1').src = path.replace("{0}", page);
            print();
        }

    </script>
</head>
<body onload= "printFunction()">
    <img id="page1" width ="100%" height="100%" src="pages/small/blank.jpg" style="float:left;" />
    <img id="page2" width ="100%" height="100%" src="pages/small/blank.jpg" style="float:left;" />
</body>
</html>